import model from '@/models/saleModel'

//请求列表数据
export const setSaleListData = (params) => async (dispatch) =>{
  let {data} = await model.getSaleListrData(params);
  dispatch({
    type: 'setSaleListData',
    data
  })
}
//清空列表数据
export const clearSaleListData = (arg) => async (dispatch) =>{
  dispatch({
    type: 'clearSaleListData',
    data:[]
  })
}

//菜单隐藏
export const setFooterMenu = (data = true) => dispatch => {
  dispatch({
    type: 'setFooterMenu',
    data
  })
}